<%@ page import="wap.rockvilletech.portal.SystemProperty" %>

<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Clear System Property Resources</title>
</head>
<body>
<p>
<%
try {
	String propType = request.getParameter("type");
	if("property".equals(propType)) {
		boolean bool = SystemProperty.clearProperties();		
		if(bool) {
			out.println("Properties are reset, now values will be reloaded!");
		}
		else {
			out.println("Unable to reset *Properties*, try later!");
		}
	}
	else {
		out.println("Invalid request to clear the properties!");
	}
	
} catch(Exception e) {
	out.println("Error calling web service <br/>"+e.getMessage());
}

%>
</p>
</body>
</html>